<?php

namespace App\Models\Activity;

use App\Models\BaseModel;
use App\Models\Shop\ShopModel;
use App\Models\Traits\KfSoftDeletes;
use App\Models\Traits\KfUid;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Relations\HasOne;

class ShopOrderActivityShopRelModel extends BaseModel
{
    use HasFactory;
    use KfSoftDeletes;
    use KfUid;

    protected $table = "shop_order_activity_shop_rel";

    /**
     * @return HasOne
     */
    public function shopDetailRel(): HasOne
    {
        return $this->hasOne(ShopModel::class, "id", "shopId");
    }
}
